using System.Collections.Generic;

namespace InvestmentIntelligence.DbModel.Models
{
    public class FundBookEntity
    {
        public FundBookEntity()
        {
            FundBooks = new List<FundBookEntity>();
            AnalysisGroups = new List<AnalysisGroup>();
        }

        public int Id { get; set; }
        public string OriginalId { get; set; }
        public int? ParentId { get; set; }
        public string Name { get; set; }
        public int CurrencyId { get; set; }
        public bool IsActive { get; set; }
        public bool HasOpenPosition { get; set; }
        public virtual Currency Currency { get; set; }
        public virtual ICollection<FundBookEntity> FundBooks { get; set; }
        public virtual FundBookEntity Fund { get; set; }
        public virtual ICollection<AnalysisGroup> AnalysisGroups { get; set; }
    }
}
